<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>

<%@ page import="sv.edu.ues.igf115.clave1.negocio.*" %>
<%@ page import="sv.edu.ues.igf115.clave1.dominio.ClienteTarjeta" %>
<%@ page import="sv.edu.ues.igf115.clave1.dominio.ClienteTarjetaId" %>

<%@ page import="java.util.List" %> 
<%@ page import="java.util.ArrayList" %> 
<%@ page import="java.math.BigDecimal" %> 
<%@ page import="java.util.*" %> 

<% 
  CtrlClientetarjeta clientetarjeta= new CtrlClientetarjeta();  
  
   
 List<ClienteTarjeta> consulta = new ArrayList<ClienteTarjeta>();
 
 
       consulta= clientetarjeta.consultarTodo();
        
%>


<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <table border="1">
  <tr>
     <tr><td><b>ID Cliente</b></td><td><b>ID Tarjeta</b></td><td><b>Fecha Emision</b></td><td><b>Limite Credito</b></td><td><b>Puntos Tarjeta</b></td></tr>
  </tr>
     
     <%
 
 for (int x=0; x<consulta.size(); x++)

{  out.println("<tr><td> "+ consulta.get(x).getId().getIdCliente()  +"</td>"
        + "<td> "+ consulta.get(x).getId().getIdTarjeta()  +"</td>"
        + "<td> "+ consulta.get(x).getFechaEmision() +"</td>"
        + "<td> "+ consulta.get(x).getLimiteCredito() +"</td>"
        + "<td> "+ consulta.get(x).getPuntosTarjeta() +"</td>"
        + "</tr>"); };		

%>
 	</table>
    </body>
</html>
